package com.ld.service.impl;

import com.ld.doamin.Menu;
import com.ld.mapper.MenuMapper;
import com.ld.service.IMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuServiceImpl implements IMenuService {

    @Autowired
    private MenuMapper mapper;
    @Override
    public List<Menu> getMenuTree(Long empId) {

        return mapper.getMenu(empId);
    }
}
